package cn.sightsnow.zh.repository;

import cn.sightsnow.zh.entity.EasyDlResult;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.data.mongodb.repository.Query;

import java.time.LocalDateTime;
import java.util.List;

public interface EasyDlResultRepository extends MongoRepository<EasyDlResult, String> {
    @Query("{'recognitionTime': {$gte: ?0, $lte: ?1}}")
    List<EasyDlResult> findByRecognitionTimeBetween(LocalDateTime startTime, LocalDateTime endTime);
}
